package com.geilizu.dom.service;

import com.geilizu.dom.dto.BuildingDto;
import com.geilizu.dom.dto.SearchDto;
import com.geilizu.dom.entity.Building;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;

import java.util.List;
import java.util.Map;

/**
 * (Building)表服务接口
 *
 * @author makejava
 * @since 2022-07-12 16:59:03
 */
public interface BuildingService {



    List<Building> list();

    boolean save(Building building);

    Map<String, Object> list(Integer page, Integer size);

    Map<String, Object> search(SearchDto searchDto);

    Integer deleteById(Integer id);

    Integer updateById(Building building);

    BuildingDto findById(Integer id);
}
